package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.system.domain.SimUserPurseRecords;
import org.dromara.system.domain.base.BasePageReqDTO;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 用户钱包记录业务对象 sim_user_purse_records
 *
 * @author Lion Li
 * @date 2025-08-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SimUserPurseRecords.class, reverseConvertGenerate = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SimUserPurseRecordsBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     * 变更类型
     */
    @NotNull(message = "变更类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer type;

    /**
     * 变更前积分
     */
    @NotNull(message = "变更前积分不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal sourceProfit;

    /**
     * 变更后积分
     */
    @NotNull(message = "变更后积分不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal targetProfit;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;

    private String userName;

    private String realName;

    private List<Integer> typeList;

    private Date startTime;

    private Date endTime;


}
